﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LIMS.DataAccess
{
    public interface IDBA<T>
    {
        T GetById(int id);
        List<T> GetAll();
        List<T> GetByExample(T exampleInstance, params string[] propertiesToExclude);
        T GetUniqueByExample(T exampleInstance, params string[] propertiesToExclude);
        T Save(T entity);
        T SaveOrUpdate(T entity);
        bool Delete(T entity);
        void CommitChanges();
    }
}


